import request from '@/utils/request'



// 查询监测点位设备信息列表-不分页
export function selectAllPointDeviceList(query) {
  return request({
    url: '/yanjing/point/selectAllPointDeviceList',
    method: 'get',
    params: query
  })
}

// 查询监测点位信息列表-不分页
export function selectAllPointList(query) {
  return request({
    url: '/yanjing/point/selectAllPointList',
    method: 'get',
    params: query
  })
}

// 查询监测点位信息列表
export function listPoint(query) {
  return request({
    url: '/yanjing/point/list',
    method: 'get',
    params: query
  })
}

// 查询监测点位线路电杆信息列表
export function selectMonitorPointAndLinePoleInfoList(query) {
  return request({
    url: '/yanjing/point/selectMonitorPointAndLinePoleInfoList',
    method: 'get',
    params: query
  })
}


// 查询监测点位信息详细
export function getPoint(id) {
  return request({
    url: '/yanjing/point/' + id,
    method: 'get'
  })
}

// 新增监测点位信息
export function addPoint(data) {
  return request({
    url: '/yanjing/point',
    method: 'post',
    data: data
  })
}

// 修改监测点位信息
export function updatePoint(data) {
  return request({
    url: '/yanjing/point',
    method: 'put',
    data: data
  })
}

// 删除监测点位信息
export function delPoint(id) {
  return request({
    url: '/yanjing/point/' + id,
    method: 'delete'
  })
}
